//package cate.game.activity.battleroyale.msg;
//
//import cate.common.annotation.OperationSetter;
//import cate.common.table.d.GDOperation;
//import cate.game.GameBody;
//import cate.game.activity.battleroyale.po.RoleBattleRoyale;
//import cate.game.client.ClientContext;
//import cate.game.client.msg.ClientMsg;
//import cate.game.client.msg.MsgConfig;
//import cate.game.client.msg.MsgInput;
//import cate.game.client.msg.id.MsgIdBBattleRoyale;
//import easy.java.dev.note.NoteField;
//import easy.java.practice.errorcode.EcResult;
//
//@ClientMsg(title = "提前解锁下一章副本 の 请求")
//@OperationSetter(GDOperation.BATTLE_ROYALE_UNLOCK)
//public class UnlockChapterReq implements MsgInput {
//    @NoteField(value = "功能ID")
//    public int funcId;
//
//    @Override
//    public void execute(GameBody game, ClientContext cc) {
//        RoleBattleRoyale single = cc.getRole().getActivity().getEnableActivitySingle(funcId);
//        if (single == null) {
//            cc.getRole().getGame().notice.message(cc.getRole(), "活动未开启");
//            return;
//        }
//        EcResult<Void> r = single.payUnlock();
//        if (!r.ok()) {
//            game.notice.message(cc.getRole(), r.message);
//        }
//    }
//
//    @Override
//    public MsgConfig conf() {
//        return MsgIdBBattleRoyale.UNLOCK_REQ;
//    }
//}
